<?php 
$rs_cc = getContactDetails($_GET['itemid']);
$row_rs_cc = mysql_fetch_assoc($rs_cc);

?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="45%" valign="top"><table width="99%" border="0" cellspacing="2" cellpadding="2">
      <tr>
        <td width="29%">contactid</td>
        <td width="71%"><?php echo $row_rs_cc["contact_message_id"];?></td>
      </tr>
      <tr>
        <td>sendersname</td>
        <td><?php echo $row_rs_cc["sender_name"];?></td>
      </tr>
      <tr>
        <td>sendersemail</td>
        <td><?php echo $row_rs_cc["sender_email"];?></td>
      </tr>
      <tr>
        <td>topic</td>
        <td><?php echo $row_rs_cc["topic"];?></td>
      </tr>
      <tr>
        <td>dateposted</td>
        <td><?php echo $row_rs_cc["date_posted"];?></td>
      </tr>
      <tr>
        <td>comments</td>
        <td class="yellowbg"><?php echo $row_rs_cc["sender_comment"];?></td>
      </tr>
    </table></td>
    <td width="55%"><form id="form1" name="form1" method="post" action="" class="validate">
    <div id="ermsg"><?php echo $queryResult; ?></div>
      <table width="99%" border="0" cellspacing="2" cellpadding="2">
        <tr>
          <td colspan="2"><?php if($row_rs_cc["is_respond"]=="yes") echo "This contact has already been responded to on ".$row_rs_cc["response_date"];
                                else
                                    echo "No response yet for this Comment "; ?></td>
          </tr>
        <tr>
          <td width="26%">Subject</td>
          <td width="74%"><label>
            <input name="topic" type="text" id="topic" value="RE:<?php echo $row_rs_cc["topic"];?>" size="50"  class="reqd" />
          </label></td>
        </tr>
        <tr>
          <td>Send to</td>
          <td><label>
            <input name="sender_email" type="text" id="sender_email" value="<?php echo $row_rs_cc["sender_email"];?>" size="50"  class="reqd email" />
          </label></td>
        </tr>
        <tr>
          <td colspan="2">Message</td>
        </tr>
        <tr>
          <td colspan="2"><label>
              <textarea name="sender_comment" id="textarea1"  class="reqd">
			<?php echo $row_rs_cc["sender_comment"];?><br />
                        ___________________________________________________<br />
              </textarea>
            </label>
              <script  type="text/javascript">
  generate_wysiwyg('textarea1');
  </script></td>
          </tr>
        <tr>
          <td><input name="frmaction" type="hidden" id="hiddenField" value="contactreply" /></td>
          <td><label>
            <input type="submit" name="button" id="button" value="SEND" />
          </label></td>
        </tr>
      </table>
    </form></td>
  </tr>
</table>
</div>
<div class="tabcontent" id="tabcategory">
    {}
</div>